package com.chexiehui.jc.mvp.mine;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;
import com.chexiehui.jc.entity.CarInfo;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 车辆列表
 * @Auth SongJun
 * @Date 2020/05/21 00:18
 **/
public interface ChooseCarModelCarCovenant {

    interface View extends BaseView {
        void onGetListSuccess(BaseModel<List<CarInfo>> successResult);

        void onGetListFailure(BaseModel<Object> failureResult);

        String getSeriesId();
    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_BRAND_SERIES_CAR)
        Observable<BaseModel<List<CarInfo>>> getList(@Field("Id") String Id);
    }

    interface Presenter {
        void getList();
    }

}